package com.aliyun.heiyu.powermaster.server.rotary.object.thread;

import com.aliyun.heiyu.powermaster.server.rotary.dao.ServerDAO;
import com.aliyun.heiyu.powermaster.server.rotary.object.entity.ServerCollectInfoEntity;

/**
 * @Description 保存服务器数据
 * @Author shun.zhang
 * @Date 2019/12/31 15:33
 **/
public class ServerDataThread implements Runnable{
    private ServerDAO serverDAO;
    private ServerCollectInfoEntity info;
    public ServerDataThread(ServerDAO serverDAO,ServerCollectInfoEntity info){
        this.serverDAO = serverDAO;
        this.info = info;
    }
    @Override
    public void run() {
        serverDAO.saveServerData(info);
    }
}
